<?php

/**
 * 大B渠道请求日志表
 */
namespace App\Model\BbcModel;
use App\Model\BaseModel\BaseBbcModel;
class ManagerChannelLog extends BaseBbcModel
{
    public $table = 'ly_manager_log';
    /**
     * 请求写入日志
     * @param array $param
     */
    public function addLog(array $param = [])
    {
        $data = [
            'manager_id'    => $param['manager_id'],
            'manager_name'  => $param['manager_name'],
            'content'       => $param['content'],
            'ip'            => $param['ip'],
            'url'           => $param['url'],
            'cd'            => time(),
        ];
        ManagerChannelLog::instance()->insert($data);
    }
}